package cn.sunxyz.sample;


import cn.sunxyz.core.bean.annotation.Component;
import cn.sunxyz.core.ioc.annotation.Inject;

/**
 * Created by yangrd on 2017/5/20.
 */
@Component
public class User {
    @Inject
    private Home home;

    @Inject
    private Car car;

    public void say() {
        home.say();
        car.run();
    }
}
